package day05;

public class BreakDemo {
    public static void main(String[] args) {
        /*
        int[] arr = new int[3];
        System.out.println("数组的长度："+arr.length);
        System.out.println(arr[0]);
        arr[0] = 100;
        arr[1] = 200;
        arr[2] = 300;
        System.out.println(arr.length-1);
        int[] ar1= new int[3];
        System.out.println("数组的长度："+ar1.length);
        System.out.println(ar1[0]);
        ar1[0] = 100;
        ar1[1] = 200;
        ar1[2] = 300;
        System.out.println(ar1.length-1);*/
        int[] arr=new int[10];
        for (int i=0;i<arr.length;i++){
            arr[i]=(int) (Math.random()*100);
            System.out.println(arr[i]);
        }





    }
}
